# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-trio
pkgver=0.16.0
pkgrel=0
pkgdesc="A friendly Python library for async concurrency and I/O"
url="https://trio.readthedocs.io/"
arch="noarch"
license="MIT OR Apache-2.0"
depends="python3 py3-sniffio py3-outcome py3-idna py3-sortedcontainers py3-openssl"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-astor py3-trustme"
source="https://pypi.python.org/packages/source/t/trio/trio-$pkgver.tar.gz"
builddir="$srcdir/trio-$pkgver"

case "$CARCH" in
	ppc64le) options="$options !check" ;; # unix pipes test times out
esac

build() {
	python3 setup.py build
}

check() {
	pytest -m "not redistributors_should_skip"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="962850e434e17f8d5c21bcdd17057aa6f5d19057dcb3b78deb314536f0faefc7fd4fd73b65e9f8d5fcd765a719e302aa932cfd954d0c69616261a9055e0ab907  trio-0.16.0.tar.gz"
